package com.zhoufy.service;

import com.zhoufy.api.CreateSession;

/**
 * Created with IntelliJ IDEA by ChouFy on 2020-04-14.
 *
 * @author zhoufy
 */
public class ServerBootStrap {

    public static void main(String[] args) throws Exception {
        int port = 9095;

        if(args.length > 0){
            port = Integer.parseInt(args[0]);
        }

        CreateSession.createNodeSync(port);


        UserServiceImpl.startServer("localhost", port);
    }
}
